window.onload = function () {
    document.getElementById("sop").addEventListener("change", getSelectValue);

    function getSelectValue() {
        var obj = document.getElementById("sop");
        var index = obj.selectedIndex; // 选中索引
        var text = obj.options[index].text;
        document.getElementById("roleInput").value = text;
    };
}


